Use install instead of cp, strip executable
authorNicolas Thill <[email protected]>
Thu, 7 Jul 2005 14:18:51 +0000 (14:18 +0000)
committerNicolas Thill <[email protected]>
Thu, 7 Jul 2005 14:18:51 +0000 (14:18 +0000)
SVN-Revision: 1371

openwrt/package/arptables/Makefile

index ceb745040b7255a57f2353107b054a45da21b385..348c93c98055f77fd16a74fbd0c2c5cfbcd84e26 100644 (file)
@@ -15,16 +15,15 @@ include $(TOPDIR)/package/rules.mk
 
 $(eval $(call PKG_template,ARPTABLES,arptables,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 
-$(PKG_BUILD_DIR)/.configured:
-       touch $@
-
 $(PKG_BUILD_DIR)/.built: 
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
-               CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DARPTABLES_VERSION=\\\"$(PKG_VERSION)\\\" "
+               COPT_FLAGS="$(TARGET_CFLAGS)" \
+               KERNEL_DIR="./include/linux"
        touch $@
 
 $(IPKG_ARPTABLES):
        mkdir -p $(IDIR_ARPTABLES)/usr/sbin
-       cp $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
+       install -m0755 $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
+       $(RSTRIP) $(IDIR_ARPTABLES)
        $(IPKG_BUILD) $(IDIR_ARPTABLES) $(PACKAGE_DIR)